//
//  FLSocketConfig.h
//  
//
//  Created by liuzhu on 2018/9/3.
//  Copyright © 2018年 liuzhu. All rights reserved.
//

#ifndef FLSocketConfig_h
#define FLSocketConfig_h


typedef enum : NSUInteger {
    taskSearchDevices = 00,     //搜索设备
    taskValidRepel = 02,        //验证冲突
    taskOpenAmbience =11,       //开启氛围
    taskCloseAmbience =12,      //关闭氛围
    taskCloseRepelAmbience=13,  //关闭冲突的氛围
    
} AmbienceOptionTask;


//指令tag
#define SOCKET_CON_TAG              2000        //与设备建立连接后返回的数据tag
#define SOCKET_REC_TAG              2001        //
#define SOCKET_SKIP_TAG             1002        //心跳
#define SOCKET_ALLSTATUS_TAG        1000        //全状态

//常量
#define SOCKET_SKIP_TIME            10          //心跳间隔频率




//错误代码
#define SUCCESS                     000         //成功
#define SOCKET_DIS_CONNECT          400         //socket断开
#define SOCKET_CON_FAIL             402         //socket连接失败

#define AMBIENCE_NO_DEVICE          505         //氛围下没有设备
#define AMBIENCE_REPEL_START        507         //启动氛围时有设备冲突
#define AMBIENCE_UNLINNE_DEVICE     509         //存在离线的设备
#define AMBIENCE_START_FAIL_DEVICE  511         //启动某些设备失败

#endif /* FLSocketConfig_h */
